package com.wetao.trackscreendemo;

public class TrackBean {
    private int id;
    private float x;
    private float y;
    //ACTION_DOWN: 笔记按下， ACTION_MOVE：笔记移动， ACTION_UP：笔记弹起，
    //ACTION_NEXT_PAGE:切换下一页，ACTION_PREV_PAGE:切换上一页，默认为第一页，第一页显示不会切换页操作
    //ACTION_UNDO: 撤销， ACTION_REDO: 反撤销
    //ACTION_PEN_ERASER: 橡皮檫， ACTION_PEN_BRUSH: 画笔
    //ACTION_SWITCH_WHITEBOARD: 试题图片和白板切换操作
    private String action;
    private int time;
    private int pageIndex; //试题的当前页码，或者，白板的当前页码
    private boolean isWhiteboard; //true: 是白板， false 不是白板
    private int fl_width;  //涂鸦时父容器FrameLayout的宽，播放时坐标要等比例缩放
    private int fl_height; //涂鸦时父容器FrameLayout的高，播放时坐标要等比例缩放

    public TrackBean(int id, float x, float y, String action, int time, int pageIndex, boolean isWhiteboard, int fl_width, int fl_height) {
        this.id = id;
        this.x = x;
        this.y = y;
        this.action = action;
        this.time = time;
        this.pageIndex = pageIndex;
        this.isWhiteboard = isWhiteboard;
        this.fl_width = fl_width;
        this.fl_height = fl_height;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public boolean isWhiteboard() {
        return isWhiteboard;
    }

    public void setWhiteboard(boolean whiteboard) {
        isWhiteboard = whiteboard;
    }

    public int getFl_width() {
        return fl_width;
    }

    public void setFl_width(int fl_width) {
        this.fl_width = fl_width;
    }

    public int getFl_height() {
        return fl_height;
    }

    public void setFl_height(int fl_height) {
        this.fl_height = fl_height;
    }

    @Override
    public String toString() {
        return "TrackBean{" +
                "id=" + id +
                ", x=" + x +
                ", y=" + y +
                ", action='" + action + '\'' +
                ", time=" + time +
                ", pageIndex=" + pageIndex +
                ", isWhiteboard=" + isWhiteboard +
                ", fl_width=" + fl_width +
                ", fl_height=" + fl_height +
                '}';
    }
}
